AC_INIT([opencas], [1.0], [bugs@xxx.xx])

AC_CANONICAL_HOST

AM_INIT_AUTOMAKE([-Wall -Werror foreign])
PKG_PROG_PKG_CONFIG

AC_CONFIG_HEADERS([config.h])
AC_DISABLE_STATIC

AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_RANLIB

AC_ARG_ENABLE(testca,
   [   --enable-testca    build for test],,
   enable_testca=)
AM_CONDITIONAL(TEST_CA, test "$enable_testca" = "yes")

AC_ARG_ENABLE(p2pca,
   [   --enable-p2pca    ],,
   enable_p2pca=)
AM_CONDITIONAL(P2P_CA, test "$enable_p2pca" = "yes")

AC_CONFIG_FILES([
Makefile
modules/Makefile
modules/p2p/Makefile
modules/test/Makefile
])

AC_OUTPUT
